﻿using Coldairarrow.Entity.Backstage.Valickets;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Backstage.Valickets
{
    public interface IBS_VailTicketBusiness
    {
        Task<PageResult<BS_VailTicket>> GetDataListAsync(PageInput<SearchDTO> input);
        List<BS_VailTicket> GetTicketList();
        Task<BS_VailTicket> GetTheDataAsync(string id);
        Task ChangeState(string id);
        Task AddDataAsync(BS_VailTicket data);
        Task UpdateDataAsync(BS_VailTicket data);
        Task DeleteDataAsync(List<string> ids);
    }

    public class SearchDTO
    {
        /// <summary>
        /// 检索关键词
        /// </summary>
        public string Keyword { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public int? Type { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool? State { get; set; }
    }

}